package componentes;

import java.awt.GridLayout;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.SwingConstants;

/**
 * @author Reynald0
 */
public class CompCapturaNumero extends JPanel
{
   private JTextField tNumero;
   
   public CompCapturaNumero(JPanel pPanel)
   {
      tNumero     =new JTextField();
      tNumero.setHorizontalAlignment(SwingConstants.RIGHT);
      tNumero.setAlignmentX(CENTER_ALIGNMENT);
      this.setLayout(new GridLayout(1,1));
      this.add(tNumero);
      if(pPanel!=null)pPanel.add(this);
   }
}
